// Package cmd @author <chengjiang@buffalo-robot.com>
// @date 2023/1/12
// @note
package cmd

import (
	"fmt"

	"github.com/spf13/cobra"
)

func init() {
	rootCmd.AddCommand(versionCmd)
}

var versionCmd = &cobra.Command{
	Use:   "version",
	Short: "demo-version:v1.0",
	Long:  `All software has versions. This is my cheng jiang 's demo's'`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("Demo Static Site Generator v1.0 -- HEAD")
		fmt.Println("MyFlagString: "+ MyFlagString)
	},
}
